package com.chinasofati.demo05;

public class Test01 {
    public static void main(String[] args) {
        new Inter() {
            @Override
            public void method() {
                System.out.println("我是匿名内部类");
            }
        }.method();
    }
}interface  Inter{
    void method();
}